package com.grpaoedu.ioc;

import com.grpaoedu.ioc.controller.UserController;
import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 * @author LittleDesire
 * @description
 * @date 2022-03-28 周一 21:10
 * @since 17
 */
public class App {
    public static void main(String[] args) {
        ClassPathXmlApplicationContext ac = new ClassPathXmlApplicationContext("applicationContext.xml");
        UserController bean = ac.getBean(UserController.class);
        System.out.println(bean.queryUser());
    }
}
